//
//  LXBrandViewController.m
//  LvXi_newVersion
//
//  Created by 诸葛孔明 on 16/8/17.
//  Copyright © 2016年 SJT. All rights reserved.
//............................................................................................//
//...........................................个人中心-我的特卖-品牌...........................................//
//............................................................................................//

#import "LXBrandViewController.h"

@interface LXBrandViewController ()

@end

@implementation LXBrandViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor colorWithRed:238 / 255.0 green:238 / 255.0 blue:238 / 255.0 alpha:1.0];
    
    [self setUpSubViews];
}

- (void)setUpSubViews
{
    UIImageView *imageView = [[UIImageView alloc] init];
    imageView.image = [UIImage imageNamed:@"brand"];
    imageView.width = MineRatio(150);
    imageView.height = imageView.width;
    imageView.y = MineRatio(35) + MineRatio(99);
    imageView.centerX = ScreenWidth * 0.5;
    [self.view addSubview:imageView];
    
    UILabel *noLabel = [[UILabel alloc] init];
    noLabel.textColor = HexColor(@"#AAAAAA");
    noLabel.font = [UIFont systemFontOfSize:15];
    noLabel.text = @"暂无品牌";
    noLabel.width = [noLabel.text sizeInAre:MaxSize font:noLabel.font].width;
    noLabel.height = [noLabel.text sizeInAre:MaxSize font:noLabel.font].height;
    noLabel.centerX = imageView.centerX;
    noLabel.y = imageView.botton + MineRatio(15);
    [self.view addSubview:noLabel];
    
    UIButton *toHomeBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [toHomeBtn setBackgroundColor:LXMainColor];
    [toHomeBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [toHomeBtn setTitle:@"去首页逛逛" forState:UIControlStateNormal];
    toHomeBtn.layer.cornerRadius = 5;
    [toHomeBtn addTarget:self action:@selector(toHomeBtnClick) forControlEvents:UIControlEventTouchUpInside];
    toHomeBtn.x = MineRatio(10);
    toHomeBtn.y = noLabel.botton + MineRatio(15);
    toHomeBtn.width = ScreenWidth - toHomeBtn.x * 2;
    toHomeBtn.height = MineRatio(39);
    [self.view addSubview:toHomeBtn];
}

- (void)toHomeBtnClick
{
    [self.navigationController popToRootViewControllerAnimated:YES];
}

@end
